package org.zero.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.multipart.MultipartFile;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author cnzeropro@qq.com
 * @date 2021/6/26
 */
@Data
public class AjaxQuery {
    private String string;

    private Byte byteNum;

    private Short shortNum;

    private Integer intNum;

    private Long longNum;

    private Float floatNum;

    private Double doubleNum;

    private BigDecimal bigDecimal;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    private Date date;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy/MM/dd")
    private LocalDate localDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss")
    private LocalDateTime localDateTime;

    private UserDO user;

    private List<String> list;

    private Map<String, Object> map;

    private Set<String> set;

    private MultipartFile file;
}
